package com.zx.oa.entity;

import java.util.Date;


/**
 * 用户类
 */


public class Admin {
    private int id;//用户id
    private String loginCode;//登录账号
    private int roleId;//角色id
    private String password;//密码
    private Date createTime;//创建日期

    public Admin() {
    }

    public Admin( String loginCode, String password) {
        this.loginCode = loginCode;
        this.password = password;
    }


    public Admin(int id, String loginCode, int roleId, String password, Date createTime) {
        this.id = id;
        this.loginCode = loginCode;
        this.roleId = roleId;
        this.password = password;
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLoginCode() {
        return loginCode;
    }

    public void setLoginCode(String loginCode) {
        this.loginCode = loginCode;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", loginCode='" + loginCode + '\'' +
                ", roleId=" + roleId +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
